﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using EnvDTE80;
using GUAPAddin;

namespace AutoUnitTest.UI
{
    /// <summary>
    /// Interaction logic for UserControl1.xaml
    /// </summary>
    public partial class UserControl1 : UserControl
    {
        private DTE2 _application;

      /*  public UserControl1()
        {
            InitializeComponent();
        }*/

        public UserControl1(DTE2 application)
        {
            InitializeComponent();
            _application = application;
            try
            {
                _application.Events.DTEEvents.OnStartupComplete += () => _application.Solution.Open(
                    @"D:\Develop\AutoUnitTest\CsTest.sln");
            }catch (Exception) {}
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            GraphView gv = new GraphView(_application);
            gv.Show();
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            CodeGen cg = new CodeGen(_application);
            cg.Show();
        }
    }
}
